package com.campsys.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campsys.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> listAll();
    @Insert("INSERT INTO t_sys_user (login_name, password,gender,user_identity,birthday,phone,email,status) VALUES (#{loginName}, #{password}, #{gender},#{user_identity},#{birthday},#{pohne}#{email},#{status})")
    void insertUser(User user);
}
